import request from '@/utils/request'

// 查询成绩预测列表
export function listForecast(query) {
  return request({
    url: '/courseSelect/forecast/list',
    method: 'get',
    params: query
  })
}

// 查询成绩预测详细
export function getForecast(forecastId) {
  return request({
    url: '/courseSelect/forecast/' + forecastId,
    method: 'get'
  })
}

// 新增成绩预测
export function addForecast(data) {
  return request({
    url: '/courseSelect/forecast',
    method: 'post',
    data: data
  })
}

// 修改成绩预测
export function updateForecast(data) {
  return request({
    url: '/courseSelect/forecast',
    method: 'put',
    data: data
  })
}

// 删除成绩预测
export function delForecast(forecastId) {
  return request({
    url: '/courseSelect/forecast/' + forecastId,
    method: 'delete'
  })
}
